package com.menggudf.service;

import java.util.Date;
import java.util.Map;

import com.menggudf.model.ResultModel;
import com.menggudf.model.UserModel;

public interface UserService {

    void insert(String string, int i);

    ResultModel userRegister(UserModel user,String invitationCode);

    ResultModel userLogin(String phone,String passWord);

    Map<String, Object> getUserList(
            String userCode,
            String userName,
            int pageSize,
            int offset,
            Date startTime,
            Date endTime);

    ResultModel getRoles(String primaryRole);

    ResultModel currRole(String currRole, Integer isMainRole);

    ResultModel editUser(String currRole, Integer isMainRole, String name, Integer sex, Date birth);

    ResultModel findUserPsw(String phone, String password);

    ResultModel createRole(String name, Integer sex, Date birth, String userCode);

    UserModel getUserDetail(String userCode);

    ResultModel addBMIRecord(String userCode, String roleCode, Double bodyWeight, Double height);

    ResultModel getBMIRecord(String userCode, String roleCode);
    
}
